﻿#region AssemblyAboutDialog.cs
// ============================================================================
// This region will be filled automatically with data if you are working
// for example with Microsoft SourceSafe
//
// Purpose:          
// Specifics: 
// 
// Creation date:    2024/1/3 21:31:07
// Created by:       hao.chen
//
// $Author:        $
// $Date:          $
// $Revision:      $
// $History:       $
// $NoKeywords:    $
// 
// Copyright:      © 2024 YourCompanyName
//                 All Rights Reserved
// ============================================================================
#endregion

using System;
using System.ComponentModel;
using System.Drawing;
using System.IO;
using System.Reflection;
using System.Windows.Forms;

// TODO: Namespace - Modify the namespace to the project namespace
namespace CLVisionHalconNC620
{
    /// <summary>This dialog displays the information about the plug-in assembly.
    /// </summary>
    [Obfuscation(ApplyToMembers = false)]
    public partial class AssemblyAboutDialog : Form
    {
        #region --- Event and delegate definitions ----------------------------

        /// <summary>Displays some information about the plug-in assembly.
        /// </summary>
        private void AssemblyAboutDialog_Load(object sender, EventArgs e)
        {
            // Example code to read and display some information about the plug-in assembly
            try
            {
                Assembly asm = this.GetType().Assembly;
                m_lblFileValue.Text = asm.ManifestModule.ScopeName;
                m_lblVersionValue.Text = asm.GetName().Version.ToString();

            } // eof try
            catch (Exception ex)
            {
                string message = Properties.GlobalResources.strTheAboutDialogCouldNotBeDisplayed + "\r\n\r\n" + ex.Message;
                MessageBox.Show(message, Properties.GlobalResources.strNeuroCheck, MessageBoxButtons.OK, MessageBoxIcon.Error);
                this.Dispose();

            } // eof catch
        }

        /// <summary>Closes this dialog.
        /// </summary>
        private void m_btnOK_Click(object sender, EventArgs e)
        {
            this.Dispose();
        }

        #endregion ------------------------------------------------------------

        #region --- Private and public fields, except those wrapped by properties
        #endregion ------------------------------------------------------------

        #region --- Constructors, including static constructors ---------------

        /// <summary>Constructor.
        /// </summary>
        public AssemblyAboutDialog()
        {
            InitializeComponent();
        }

        #endregion ------------------------------------------------------------

        #region --- Instance public properties (and the private fields they wrap)
        #endregion ------------------------------------------------------------

        #region --- Instance public methods -----------------------------------
        #endregion ------------------------------------------------------------

        #region --- Static public methods and properties ----------------------
        #endregion ------------------------------------------------------------

        #region --- Methods in interfaces -------------------------------------
        #endregion ------------------------------------------------------------

        #region --- Private (helper) methods ----------------------------------
        #endregion ------------------------------------------------------------

    } // end of class
} // end of namespace